package com.onehash.onebilling.entity;


import java.io.Serializable;
import java.util.Date;

public class Payment implements Serializable{
	
		private String customerAcc;
		private String paymentMethod;

		private Date dateTime;
		private double amount;
		
		//String strLine = getRandomAccount(customerAcc) +delimiter+getRandomPaymentMethod(paymentMethod)+delimiter+getRandomDate() +delimiter+ getRandomPayAmount();
		 // p.println(strLine);
	
	    public Payment (String customerAcc, Date dateTime, double amount, String paymentMethod) {
	    	this.customerAcc = customerAcc;
	    	this.dateTime = dateTime;
	    	this.amount = amount;
	    	this.paymentMethod = paymentMethod;
	    }    


		public String getCustomerAcc() {
			return customerAcc;
		}

		public void setCustomerAcc(String customerAcc) {
			this.customerAcc = customerAcc;
		}

		public String getPaymentMethod() {
			return paymentMethod;
		}

		public void setPaymentMethod(String paymentMethod) {
			this.paymentMethod = paymentMethod;
		}

		public Date getDateTime() {
			return dateTime;
		}

		public void setDateTime(Date dateTime) {
			this.dateTime = dateTime;
		}

		public double getAmount() {
			return amount;
		}

		public void setAmount(double amount) {
			this.amount = amount;
		}
		public String toString () {
	        return (customerAcc + "_" +dateTime+"_"+ amount + "_"+ paymentMethod );
	    }

	    public void show () {
	        System.out.println (this);
	    }
	    
	


}
